/*
 * @Author: 'zhangkeqq' '2211709169@qq.com'
 * @Date: 2025-07-07 11:32:09
 * @LastEditors: 'zhangkeqq' '2211709169@qq.com'
 * @LastEditTime: 2025-07-10 19:44:14
 * @FilePath: \original_wx\miniprogram\pages\my\my.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// pages/my/my.js

import {
  ComponentWithStore
} from 'mobx-miniprogram-bindings'
// 导入store对象
import {userStore} from '../../stores/userstore'
ComponentWithStore({
  storeBindings:{
    store:userStore,
    fields:['token','userInfo'],
  },


  /**
   * 页面的初始数据
   */
  data: {
    orderList:[
      {
        url:'/modules/orderPayModule/pages/order/list/list',
        title:'商品订单',
        iconfont:'icon-dingdan'
      },
      {
        url:'/modules/orderPayModule/pages/order/list/list',
        title:'礼品卡订单',
        iconfont:'icon-lipinka'
      },
      {
        url:'/modules/orderPayModule/pages/order/list/list',
        title:'退款/售后',
        iconfont:'icon-tuikuan'
      }
    ],
    serveList:[
      {
        title:'可与小程序客服实时聊天或电话咨询',
        iconfont:'icon-kefufenxiermaikefu'
      },
      {
        title:'小程序客服工作时间为8:30~20:30',
        iconfont:'icon-shijian'
      },
      {
        title:'鲜花制作完毕情况下暂不支付退款',
        iconfont:'icon-dizhiguanli'
      },
      {
        title:'鲜花可以提前7~15天预定重大节日不支持定时配送',
        iconfont:'icon-zhangben'
      }
    ]
  },
methods:{
  goLogin(){
    wx.navigateTo({
      url: '/pages/login/login',
    })
  },
  goOrderList(){
    wx.navigateTo({
      url: '/modules/orderPayModule/pages/order/list/list',
    })
  },
  goSet(){
    wx.navigateTo({
      url: '/pages/set/set',
    })
  },
},
})